<?php
session_start();
include("conexion/Bdd.php");
include("EncabezadoPie.php");	
$bdd = new Bdd;

$idServicio = $_GET['servicio'];

?>

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="utf-8">    
    <link rel="stylesheet" type="text/css" media="screen" href="css/grid_12.css">
    <link rel="stylesheet" type="text/css" media="screen" href="css/style.css">
    <link href="css/ui-lightness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
    <link rel="stylesheet" href="js/DataTable/css/demo_table.css">

    <script src="js/jquery-1.9.1.js"></script>
    <script src="js/jquery-ui-1.10.3.custom.js"></script>
    <script src="js/multifile/ajaxupload.js"></script>
    <script type="text/javascript" language="javascript" src="js/DataTable/jquery.dataTables.js"></script>

        
    <script type="text/javascript">
        $(function() {
            $('#tabs').tabs();
            $("#tablaPaginada").dataTable();
        });
    </script>

    <!--[if lt IE 8]>
        <div style=' clear: both; text-align:center; position: relative;'>
            <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
                <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
            </a>
        </div>
    <![endif]-->
        <!--[if lt IE 9]>
        <script type="text/javascript" src="js/html5.js"></script>
        <link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
    <![endif]-->
</head>
<body>
    <div id="divAlerts"></div>
    <?php  imprimirEncabezado()?>
    <section id="content">


        <div class="clear"></div>
    	<div class="container_12">
            <div style="width: 100%; min-height: 400px; float: left; margin-top: 30px">
                <center>
                    <div class="text-3"><span>Nuevo Horario</span></div>
                </center>
                <br>
                <?php
                $query = "select nombre
                            from servicio
                            where id_servicio = $idServicio";
                $result = $bdd->ejecutarConsulta($query);
                $fila = mysqli_fetch_assoc($result);
                ?>
                <center>Servicio: <?=$fila['nombre']?></center>
                <table style="float: right">
                    <tr>
                        <td> 
                            <input type="button" value="Regresar" onclick="location.href='HorariosServicio.php?servicio=<?=$idServicio?>'" />
                        </td>
                    </tr>
                </table>
                <br>
                
                <form action="Controlador.php?opcion=7" method="get" style="margin: auto; width: 300px">
                    <table>
                        <tr>
                            <td>Hora de inicio</td>
                            <td>
                                <input type="text" name="inicio" />
                                <input type="hidden" name="opcion" value="7" />
                                <input type="hidden" name="servicio" value="<?=$idServicio?>" />
                            </td>
                        </tr>
                        <tr>
                            <td>Hora de finalizacion</td>
                            <td><input type="text" name="fin"/> </td>
                        </tr>
                        <tr>
                            <td>Canal</td>
                            <td>
                                <select name="canal">
                                    <option value="0">Banca en línea</option>
                                    <option value="1">Banca móvil</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <input type="submit" text="Crear" />
                            </td>
                        </tr>
                    </table>
                </form>

            </div>
            <div class="clear"></div>

        </div>
    </section>   
    <?=imprimirPie()?>
  
</body>
</html>